package TestPractice;

import org.junit.Test;

/**
 * @author Jiang Zhiyan
 *
 * 2021年6月8日 下午9:07:18
 *
 */
public class StringTest {
	@Test
	public void stringTest() {
		int x=5;
		Animal a1 = new Animal();
		a1.an(x);
		System.out.println(" "+x);
	}
}
class Animal {
	int x;
	public void an(int x) {
		System.out.print(" doStuff x = " + x++);
		System.out.println(x);
	}
	}
class Dog extends Animal {
public String noise() { return "bark"; }
}
 class Cat extends Animal {
 public String noise() { return "meow"; }
 } 

